package cn.wmlce.web.ch4_5;

import cn.wmlce.domain.DemoObj;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ConverterController {

    @RequestMapping(value = "/convert",produces = "application/x-wisely")//自定义的媒体类型application/x-wisely
    public @ResponseBody DemoObj conver(@RequestBody DemoObj demoObj){
        return demoObj;
    }
}
